home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / samples / midpnt / archiver.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-24  |  1.2 KB  |  60 lines

  1. /*
  2.  *      Archivers.h
  3.  *
  4.  * MIDAS Module Player for Windows NT archiver support
  5.  *
  6.  * Copyright 1997 Petteri Kangaslampi
  7. */
  8.  
  9. #ifndef __archivers_h
  10. #define __archivers_h
  11.  
  12.  
  13.  
  14. typedef struct
  15. {
  16.     char        *extension;
  17.     char        *decompress;
  18. } Archive;
  19.  
  20.  
  21. extern int      numArchives;
  22. extern Archive  archives[];
  23.  
  24.  
  25.  
  26.  
  27. /****************************************************************************\
  28. *
  29. * Function:     int IsArchive(char *fileName);
  30. *
  31. * Description:  Checks if a file is an archive (based on the extension)
  32. *
  33. * Input:        char *fileName          file name
  34. *
  35. * Returns:      1 if the file is an archive, 0 if not
  36. *
  37. \****************************************************************************/
  38.  
  39. int IsArchive(char *fileName);
  40.  
  41.  
  42.  
  43.  
  44. /****************************************************************************\
  45. *
  46. * Function:     MIDASmodule LoadArchive(char *fileName);
  47. *
  48. * Description:  Loads a module from an archive
  49. *
  50. * Input:        char *fileName          file name
  51. *
  52. * Returns:      MIDAS module handle for the module or NULL if failed
  53. *
  54. \****************************************************************************/
  55.  
  56. MIDASmodule LoadArchive(char *fileName);
  57.  
  58.  
  59.  
  60. #endif